package com.homework3;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class demo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream(new File("E:\\东方标准\\JAVASE阶段\\JAVASE-CODE\\Day18\\h.txt"),true);
        fos.write("沉舟侧畔千帆过".getBytes());
        fos.write("\r\n".getBytes());
        fos.write("病树前头万木春".getBytes());
        fos.write("\r\n".getBytes());
        fos.write("今日听君歌一曲".getBytes());
        fos.write("\r\n".getBytes());
        fos.write("单凭杯酒长精神".getBytes());
        fos.write("\r\n".getBytes());
    }
}
